﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001319 RID: 4889
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeAllApRewardScRsp : IMessage<TakeAllApRewardScRsp>, IMessage, IEquatable<TakeAllApRewardScRsp>, IDeepCloneable<TakeAllApRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003DB1 RID: 15793
		// (get) Token: 0x0600DADD RID: 56029 RVA: 0x0024A6D1 File Offset: 0x002488D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeAllApRewardScRsp> Parser
		{
			get
			{
				return TakeAllApRewardScRsp._parser;
			}
		}

		// Token: 0x17003DB2 RID: 15794
		// (get) Token: 0x0600DADE RID: 56030 RVA: 0x0024A6D8 File Offset: 0x002488D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeAllApRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DB3 RID: 15795
		// (get) Token: 0x0600DADF RID: 56031 RVA: 0x0024A6EA File Offset: 0x002488EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeAllApRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DAE0 RID: 56032 RVA: 0x0024A6F1 File Offset: 0x002488F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeAllApRewardScRsp()
		{
		}

		// Token: 0x0600DAE1 RID: 56033 RVA: 0x0024A704 File Offset: 0x00248904
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeAllApRewardScRsp(TakeAllApRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.dDFEGMCDOGF_ = other.dDFEGMCDOGF_.Clone();
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DAE2 RID: 56034 RVA: 0x0024A761 File Offset: 0x00248961
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeAllApRewardScRsp Clone()
		{
			return new TakeAllApRewardScRsp(this);
		}

		// Token: 0x17003DB4 RID: 15796
		// (get) Token: 0x0600DAE3 RID: 56035 RVA: 0x0024A769 File Offset: 0x00248969
		// (set) Token: 0x0600DAE4 RID: 56036 RVA: 0x0024A771 File Offset: 0x00248971
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003DB5 RID: 15797
		// (get) Token: 0x0600DAE5 RID: 56037 RVA: 0x0024A77A File Offset: 0x0024897A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DDFEGMCDOGF
		{
			get
			{
				return this.dDFEGMCDOGF_;
			}
		}

		// Token: 0x17003DB6 RID: 15798
		// (get) Token: 0x0600DAE6 RID: 56038 RVA: 0x0024A782 File Offset: 0x00248982
		// (set) Token: 0x0600DAE7 RID: 56039 RVA: 0x0024A78A File Offset: 0x0024898A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600DAE8 RID: 56040 RVA: 0x0024A793 File Offset: 0x00248993
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeAllApRewardScRsp);
		}

		// Token: 0x0600DAE9 RID: 56041 RVA: 0x0024A7A4 File Offset: 0x002489A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeAllApRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.dDFEGMCDOGF_.Equals(other.dDFEGMCDOGF_) && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DAEA RID: 56042 RVA: 0x0024A808 File Offset: 0x00248A08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.dDFEGMCDOGF_.GetHashCode();
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DAEB RID: 56043 RVA: 0x0024A86B File Offset: 0x00248A6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DAEC RID: 56044 RVA: 0x0024A873 File Offset: 0x00248A73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DAED RID: 56045 RVA: 0x0024A87C File Offset: 0x00248A7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.Reward);
			}
			this.dDFEGMCDOGF_.WriteTo(ref output, TakeAllApRewardScRsp._repeated_dDFEGMCDOGF_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DAEE RID: 56046 RVA: 0x0024A8E8 File Offset: 0x00248AE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.dDFEGMCDOGF_.CalculateSize(TakeAllApRewardScRsp._repeated_dDFEGMCDOGF_codec);
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DAEF RID: 56047 RVA: 0x0024A954 File Offset: 0x00248B54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeAllApRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.dDFEGMCDOGF_.Add(other.dDFEGMCDOGF_);
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DAF0 RID: 56048 RVA: 0x0024A9CD File Offset: 0x00248BCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DAF1 RID: 56049 RVA: 0x0024A9D8 File Offset: 0x00248BD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 34U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 72U)
					{
						goto IL_52;
					}
				}
				else
				{
					if (num == 74U)
					{
						goto IL_52;
					}
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_52:
				this.dDFEGMCDOGF_.AddEntriesFrom(ref input, TakeAllApRewardScRsp._repeated_dDFEGMCDOGF_codec);
			}
		}

		// Token: 0x040056FD RID: 22269
		private static readonly MessageParser<TakeAllApRewardScRsp> _parser = new MessageParser<TakeAllApRewardScRsp>(() => new TakeAllApRewardScRsp());

		// Token: 0x040056FE RID: 22270
		private UnknownFieldSet _unknownFields;

		// Token: 0x040056FF RID: 22271
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04005700 RID: 22272
		private uint retcode_;

		// Token: 0x04005701 RID: 22273
		public const int DDFEGMCDOGFFieldNumber = 9;

		// Token: 0x04005702 RID: 22274
		private static readonly FieldCodec<uint> _repeated_dDFEGMCDOGF_codec = FieldCodec.ForUInt32(74U);

		// Token: 0x04005703 RID: 22275
		private readonly RepeatedField<uint> dDFEGMCDOGF_ = new RepeatedField<uint>();

		// Token: 0x04005704 RID: 22276
		public const int RewardFieldNumber = 4;

		// Token: 0x04005705 RID: 22277
		private ItemList reward_;
	}
}
